<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<link rel="stylesheet" type="text/css" href="../../css/style.css" />
		<link rel="stylesheet" type="text/css" href="../../css/demo.css" />
		<script src="../../js/demo.js" type="text/javascript" charset="utf-8"></script>
		<title>设置</title>
	</head>
	<body>
		<!--header-->
		<div class="header">
			<div class="header-content">
				<ul class="nav left">
					<li><img src="../../img/regist-arrow.png" /></li>
					<li class="nav-one">
						<a href="distribution.html">返回</a>
					</li>
					<li class="nav-two">
						<a href="../../index.html">关闭</a>
					</li>
				</ul>
				<p class="left">设置</p>
				<div class="right nav_right">
					<img src="../../img/regist-list.png" />
				</div>
			</div>
		</div>
		<!--main-->
		<div class="main clear">
			<form action="">
				<div class="selfsetinglist">
					
				</div>
				<input type="submit" value="保存" class="selfset-next"/>
			</form>
		</div>
	</body>
	<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
	<script type="text/javascript">
		selfcenterSetting();
		function selfcenterSetting(){
			
			$.ajax({
				type:"post",
				url:"/qiaomengapp/user/selfcenterSetting",
				dataType:"json",
				success:function(data){
					if(data.headImg==""){
						data.headImg="../../img/selfcenter-set9.png";				
					}
					if(data.name==null){
						data.name="无";
					}
					if(data.userDesc==null){
						data.userDesc="无";
					}
					$(".selfsetinglist").html(
						"<ul class='selfsetinglist-arr'>"+
							"<li class='left'><img src='../../img/selfcenter-set.png'/>头像</li>"+
							"<li class='right'><img src='"+data.headImg+"'/></li>"+
						"</ul>"+
						"<ul class='selfsetinglist2-arr'>"+
							"<li class='left'><img src='../../img/selfcenter-set2.png'/>昵称</li>"+
							"<li class='right'>"+data.name+"<img src='../../img/shopseting-icon11.png' alt='' /></li>"+
						"</ul>"+
						"<ul class='selfsetinglist2-arr'>"+
							"<li class='left'><img src='../../img/selfcenter-set4.png'/>个人介绍</li>"+
							"<li class='right'>"+data.userDesc+"<img src='../../img/shopseting-icon11.png' alt='' /></li>"+
						"</ul>"+
						"<ul class='selfsetinglist2-arr'>"+
							"<li class='left'><img src='../../img/selfcenter-set7.png'/>登录密码</li>"+
							"<li class='right'>修改<img src='../../img/shopseting-icon11.png' alt='' /></li>"+
						"</ul>"+
						"<ul class='selfsetinglist2-arr' style='border-bottom: none;'>"+
							"<li class='left'><img src='../../img/selfcenter-set8.png'/>绑定手机号(尾号"+data.phone.substr(data.phone.length-4)+")</li>"+
							"<li class='right'>换绑<img src='../../img/shopseting-icon11.png' alt='' /></li>"+
						"</ul>"
					);
					
					
				}
			});
			
		}
		
	</script>
</html>